﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Net;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Animation;
using System.Windows.Shapes;

namespace nyxwin.Common.Silverlight.Controls
{
    public partial class ThemeAwareIcon : UserControl
    {
        public ThemeAwareIcon()
        {
            InitializeComponent();

            LayoutRoot.DataContext = this;
        }

        public Uri IconUri
        {
            get { return (Uri)GetValue(IconUriProperty); }
            set { SetValue(IconUriProperty, value); }
        }

        // Using a DependencyProperty as the backing store for IconUri.  This enables animation, styling, binding, etc...
        public static readonly DependencyProperty IconUriProperty =
            DependencyProperty.Register("IconUri", typeof(Uri), typeof(ThemeAwareIcon), new PropertyMetadata(null, new PropertyChangedCallback(
                (obj, evArgs) =>
                {
                    //var thisObj = obj as ThemeAwareIcon;
                    //var newUri = evArgs.NewValue as Uri;

                    //if (thisObj != null)
                    //{
                        
                    //}
                })));
    }
}
